package com.library.domain;


import com.library.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 签到规则表 mb_sign_rules
 *
 * @author null
 * @date 2020-04-23
 */
public class MbSignRules extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 规则编号
     */
    private Integer ruleNo;
    /**
     * 规则名称
     */
    private String ruleName;
    /**
     * 步长
     */
    private Double stepLength;
    /**
     * 最大值
     */
    private Integer maxNum;
    /**
     * 赠送方式
     */
    private Integer givWay;

    /**
     * 随机时中奖概率
     */
    private Integer probability;
    /**
     * 累计次数
     */
    private Integer cumulativeNum;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 操作时间
     */
    private Date createTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 扩展字段
     */
    private String ext;

    public Integer getProbability() {
        return probability;
    }

    public void setProbability(Integer probability) {
        this.probability = probability;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setRuleNo(Integer ruleNo) {
        this.ruleNo = ruleNo;
    }

    public Integer getRuleNo() {
        return ruleNo;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setStepLength(Double stepLength) {
        this.stepLength = stepLength;
    }

    public Double getStepLength() {
        return stepLength;
    }

    public void setMaxNum(Integer maxNum) {
        this.maxNum = maxNum;
    }

    public Integer getMaxNum() {
        return maxNum;
    }

    public void setGivWay(Integer givWay) {
        this.givWay = givWay;
    }

    public Integer getGivWay() {
        return givWay;
    }

    public void setCumulativeNum(Integer cumulativeNum) {
        this.cumulativeNum = cumulativeNum;
    }

    public Integer getCumulativeNum() {
        return cumulativeNum;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getExt() {
        return ext;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("ruleNo", getRuleNo())
                .append("ruleName", getRuleName())
                .append("stepLength", getStepLength())
                .append("maxNum", getMaxNum())
                .append("givWay", getGivWay())
                .append("cumulativeNum", getCumulativeNum())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("remark", getRemark())
                .append("ext", getExt())
                .toString();
    }
}
